package com.dodoke.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dodoke.entity.RetailRoute;
import com.dodoke.vo.RetailRouteAllListVO;
import com.dodoke.vo.RetailRouteListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 线路管理数据操作接口
 */
@Mapper
public interface RetailRouteMapper extends BaseMapper<RetailRoute> {
    /**
     * 路线分页查询
     *
     * @param page
     * @param retailRoute
     * @return
     */
    Page<RetailRouteListVO> selectByList(Page<RetailRouteListVO> page, @Param("retailRoute") RetailRoute retailRoute);

    /**
     * 获取所有路线列表
     * @return
     */
    List<RetailRouteAllListVO> selectAllList();
}
